/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.mobile.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 移动双录文件管理Entity
 * @author dh
 * @version 2017-03-23
 */
public class MobileFile extends DataEntity<MobileFile> {
	
	private static final long serialVersionUID = 1L;
	private String url;		    // 文件访问路径
	private String urlLocal;	// 文件存放路径
	private String name;		// 文件名称
	private String format;		// 文件格式
	private String code;		// 解密编码
	private String userName;        // 用户姓名
	private String org;        // 机构号
	private String insurance;        // 保单号
	private String urlDecrypt  ;		// 解密文件访问路径
	private String urlDecryptLocal;// 解密文件本地路径
	public MobileFile() {
		super();
	}

	public MobileFile(String id){
		super(id);
	}

	@Length(min=1, max=512, message="文件存放路径长度必须介于 1 和 512 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@Length(min=1, max=64, message="文件名称长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=16, message="文件格式长度必须介于 1 和 16 之间")
	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	public String getUrlDecrypt() {
		return urlDecrypt;
	}

	public void setUrlDecrypt(String urlDecrypt) {
		this.urlDecrypt = urlDecrypt;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getUrlLocal() {
		return urlLocal;
	}

	public void setUrlLocal(String urlLocal) {
		this.urlLocal = urlLocal;
	}

	public String getUrlDecryptLocal() {
		return urlDecryptLocal;
	}

	public void setUrlDecryptLocal(String urlDecryptLocal) {
		this.urlDecryptLocal = urlDecryptLocal;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getOrg() {
		return org;
	}

	public void setOrg(String org) {
		this.org = org;
	}

	public String getInsurance() {
		return insurance;
	}

	public void setInsurance(String insurance) {
		this.insurance = insurance;
	}
}